-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: thingy91x: fix swapped blue/green LEDs #19667
base: main
Are you sure you want to change the base?
Conversation
The mapping for blue and green LEDs has been swapped for both `led` and `pwm_led` nodes to correctly control the desired color. Signed-off-by: Mike Szczys <[email protected]>
Thank you for your contribution! Note: This comment is automatically posted and updated by the Contribs GitHub Action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching and fixing this issue!
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: fb5c71f08264fc545ec417125328c96973a05f59 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
The mapping for blue and green LEDs has been swapped for both
leds
andpwmleds
nodes to correctly control the desired color.Issue
From the LED table on the Thingy91x hardware documentation we expect the following LED mappings:
However we can see from the current board mapping that blue and green are reversed.
sdk-nrf/boards/nordic/thingy91x/thingy91x_nrf9151_common.dts
Lines 29 to 43 in 84ec4da
Reproducing the issue
Verify that the blue and green LEDs are reversed by running the zephyr/samples/basic/blinky application with the following patch:
Correcting pwmleds
I could not find any documentation on the hardware page or in the available schematic for how the PWM channels should be mapped. However, when comparing the Thingy91 to the Thingy91x, pwmleds for green and blue are swapped in the same way described above. This PR also corrects this.